"use strict";

module.exports = app => {
  const { STRING, INTEGER, BOOLEAN } = app.Sequelize;

  const Notifi = app.model.define(
    "notifi",
    {
      id: { type: INTEGER, primaryKey: true, autoIncrement: true },
      title: STRING(100),
      content: STRING(300),
      is_read:BOOLEAN,
    },
    {
      timestamps: true,
      createdAt: "created_at",
      updatedAt: false,
      freezeTableName: true,
    }
  );

  return Notifi;
};
